home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5970 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  874 b 

  1. Path: news.uni-jena.de!news
  2. From: mkt@isun04.inf.uni-jena.de (Tilo Koerbs)
  3. Newsgroups: comp.lang.c++
  4. Subject: Q. only for ostrstream experts!!!
  5. Date: 7 Feb 1996 14:00:13 GMT
  6. Organization: Lehrstuhl fuer Rechnerarchitektur- und kommunikation, FSU Jena
  7. Message-ID: <4fab9d$1rp@fsuj01.rz.uni-jena.de>
  8. Reply-To: mkt@isun04.inf.uni-jena.de
  9. NNTP-Posting-Host: isun07.inf.uni-jena.de
  10.  
  11.  
  12. Consider:
  13.     ostrstream buf();  // dynamic buffer
  14.     buf << "something" << ends;
  15.     char *p = buf.str();  // freeze buffer and return a pointer to it
  16.  
  17. Now: How do I delete the pointer p, using 'delete' or using 'delete[]'?
  18.  
  19. Please: Post only an answer if you are really sure! And consider: Even different
  20. books give different answers!
  21.  
  22. So if you know a standard's paper or the description of the original
  23. implementation or something else, please post!
  24.  
  25. Thanks and bye.
  26. Tilo Koerbs,  mkt@uni-jena.de
  27.  
  28.  
  29.